export default {
  createProductCategory: {//创建产品分类
    url: '/core/productCategory/create',
    require: ['token', 'clientid']//name、parentId(选)、description,data
  },
  getProductCategory: {//获取产品分类
    url: '/core/productCategory/get',
    require: ['token', 'clientid','id']
  },
  getProductCategoryList: {//获取产品分类列表
    url: '/core/productCategory/list',
    require: ['token', 'clientid']
  },
  getRootProductCategoryList: {//获取产品分类根目录列表
    url: '/core/productCategory/getRoot',
    require: ['token', 'clientid']
  },
  updateProductCategory: {//更新产品分类
    url: '/core/productCategory/update',
    require: ['token', 'clientid','id']//name、parentId(选)、description(选)
  },
  deleteAndUpdateProductCategory: {//删除父目录并更新子目录
    url: '/core/productCategory/deleteAndUpdate',
    require: ['token', 'clientid','id']
  },
  deleteFamilyProductCategory: {//删除父目录和所有子目录
    url: '/core/productCategory/deleteFamily',
    require: ['token', 'clientid','id']
  },
  createProduct:{//创建产品
    url: '/mall/product/create',
    require:['token','clientid']//companyId、categoryId、name、sn、properties、data(选)、productSpecs(选)
  },
  getProduct:{//获取产品
    url: '/mall/product/get',
    require:['token','clientid','id']
  },
  delProduct:{//删除产品
    url: '/mall/product/delete',
    require:['token','clientid','id']
  },
  updateProduct:{//更新产品
    url: '/mall/product/update',
    require:['token','clientid','id']//categoryId(选)、name(选)、sn(选)、properties(选)、data(选)、enabled(选)
  },
  getProductList:{//获取产品列表
    url: '/mall/product/list',
    require:['token','clientid']//page、size(选)、companyId、categoryId(选)、enabled(选)
  },
  getProductsBySn:{//通过sn获取产品列表
    url: '/mall/product/getProductsBySn',
    require:['token','clientid','sn']
  },
  createProductSpec:{//创建产品规格
    url: '/mall/productSpec/create',
    require:['token','clientid']//productId、props、price、sn(选)、data(选)
  },
  getProductSpec:{//获取产品规格
    url: '/mall/productSpec/get',
    require:['token','clientid','id']
  },
  delProductSpec:{//删除产品规格
    url: '/mall/productSpec/delete',
    require:['token','clientid','id']
  },
  updateProductSpec:{//更新产品规格
    url: '/mall/productSpec/update',
    require:['token','clientid','id']//props(选)、price(选)、sn(选)、data(选)
  },
  getProductSpecList:{//获取产品规格列表
    url: '/mall/productSpec/list',
    require:['token','clientid']//productId、productSpecSn
  },
}
